Integrand size = 21, antiderivative size = 99 \[ \int \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {\left (3 a^2-b^2\right ) \text {arctanh}(\sin (c+d x))}{8 d}+\frac {\sec ^4(c+d x) (b+a \sin (c+d x)) (a+b \sin (c+d x))}{4 d}+\frac {\sec ^2(c+d x) \left (2 a b+\left (3 a^2-b^2\right ) \sin (c+d x)\right )}{8 d} \]
1/8*(3*a^2-b^2)*arctanh(sin(d*x+c))/d+1/4*sec(d*x+c)^4*(b+a*sin(d*x+c))*(a +b*sin(d*x+c))/d+1/8*sec(d*x+c)^2*(2*a*b+(3*a^2-b^2)*sin(d*x+c))/d
Time = 0.51 (sec) , antiderivative size = 166, normalized size of antiderivative = 1.68 \[ \int \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {4 \left (-a^2+b^2\right ) \sec ^4(c+d x) (b-a \sin (c+d x)) (a+b \sin (c+d x))^3+\left (-3 a^2+b^2\right ) \left (\left (a^2-b^2\right )^2 (\log (1-\sin (c+d x))-\log (1+\sin (c+d x)))+2 a^3 b \sec ^2(c+d x)-2 \left (a^4-b^4\right ) \sec (c+d x) \tan (c+d x)+\left (-6 a^3 b+4 a b^3\right ) \tan ^2(c+d x)\right )}{16 \left (a^2-b^2\right )^2 d} \]
(4*(-a^2 + b^2)*Sec[c + d*x]^4*(b - a*Sin[c + d*x])*(a + b*Sin[c + d*x])^3 + (-3*a^2 + b^2)*((a^2 - b^2)^2*(Log[1 - Sin[c + d*x]] - Log[1 + Sin[c + d*x]]) + 2*a^3*b*Sec[c + d*x]^2 - 2*(a^4 - b^4)*Sec[c + d*x]*Tan[c + d*x] + (-6*a^3*b + 4*a*b^3)*Tan[c + d*x]^2))/(16*(a^2 - b^2)^2*d)
Time = 0.37 (sec) , antiderivative size = 141, normalized size of antiderivative = 1.42, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3042, 3147, 477, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {(a+b \sin (c+d x))^2}{\cos (c+d x)^5}dx\) |
\(\Big \downarrow \) 3147 |
\(\displaystyle \frac {b^5 \int \frac {(a+b \sin (c+d x))^2}{\left (b^2-b^2 \sin ^2(c+d x)\right )^3}d(b \sin (c+d x))}{d}\) |
\(\Big \downarrow \) 477 |
\(\displaystyle \frac {\int \left (\frac {(a+b)^2 b^3}{8 (b-b \sin (c+d x))^3}+\frac {(a-b)^2 b^3}{8 (\sin (c+d x) b+b)^3}+\frac {\left (3 a^2-b^2\right ) b^2}{8 \left (b^2-b^2 \sin ^2(c+d x)\right )}+\frac {(3 a-b) (a+b) b^2}{16 (b-b \sin (c+d x))^2}+\frac {(a-b) (3 a+b) b^2}{16 (\sin (c+d x) b+b)^2}\right )d(b \sin (c+d x))}{b d}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {\frac {1}{8} b \left (3 a^2-b^2\right ) \text {arctanh}(\sin (c+d x))+\frac {b^3 (a+b)^2}{16 (b-b \sin (c+d x))^2}-\frac {b^3 (a-b)^2}{16 (b \sin (c+d x)+b)^2}+\frac {b^2 (3 a-b) (a+b)}{16 (b-b \sin (c+d x))}-\frac {b^2 (a-b) (3 a+b)}{16 (b \sin (c+d x)+b)}}{b d}\) |
((b*(3*a^2 - b^2)*ArcTanh[Sin[c + d*x]])/8 + (b^3*(a + b)^2)/(16*(b - b*Si n[c + d*x])^2) + ((3*a - b)*b^2*(a + b))/(16*(b - b*Sin[c + d*x])) - ((a - b)^2*b^3)/(16*(b + b*Sin[c + d*x])^2) - ((a - b)*b^2*(3*a + b))/(16*(b + b*Sin[c + d*x])))/(b*d)
3.4.92.3.1 Defintions of rubi rules used
Int[((c_) + (d_.)*(x_))^(n_)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[ a^p Int[ExpandIntegrand[(c + d*x)^n*(1 - Rt[-b/a, 2]*x)^p*(1 + Rt[-b/a, 2 ]*x)^p, x], x], x] /; FreeQ[{a, b, c, d}, x] && ILtQ[p, 0] && IntegerQ[n] & & NiceSqrtQ[-b/a] && !FractionalPowerFactorQ[Rt[-b/a, 2]]
Int[cos[(e_.) + (f_.)*(x_)]^(p_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m _.), x_Symbol] :> Simp[1/(b^p*f) Subst[Int[(a + x)^m*(b^2 - x^2)^((p - 1) /2), x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, m}, x] && IntegerQ[(p - 1)/2] && NeQ[a^2 - b^2, 0]
Time = 1.35 (sec) , antiderivative size = 131, normalized size of antiderivative = 1.32
method | result | size |
derivativedivides | \(\frac {a^{2} \left (-\left (-\frac {\left (\sec ^{3}\left (d x +c \right )\right )}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )+\frac {a b}{2 \cos \left (d x +c \right )^{4}}+b^{2} \left (\frac {\sin ^{3}\left (d x +c \right )}{4 \cos \left (d x +c \right )^{4}}+\frac {\sin ^{3}\left (d x +c \right )}{8 \cos \left (d x +c \right )^{2}}+\frac {\sin \left (d x +c \right )}{8}-\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )}{d}\) | \(131\) |
default | \(\frac {a^{2} \left (-\left (-\frac {\left (\sec ^{3}\left (d x +c \right )\right )}{4}-\frac {3 \sec \left (d x +c \right )}{8}\right ) \tan \left (d x +c \right )+\frac {3 \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )+\frac {a b}{2 \cos \left (d x +c \right )^{4}}+b^{2} \left (\frac {\sin ^{3}\left (d x +c \right )}{4 \cos \left (d x +c \right )^{4}}+\frac {\sin ^{3}\left (d x +c \right )}{8 \cos \left (d x +c \right )^{2}}+\frac {\sin \left (d x +c \right )}{8}-\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{8}\right )}{d}\) | \(131\) |
parallelrisch | \(\frac {-6 \left (\frac {3}{4}+\frac {\cos \left (4 d x +4 c \right )}{4}+\cos \left (2 d x +2 c \right )\right ) \left (a^{2}-\frac {b^{2}}{3}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )+6 \left (\frac {3}{4}+\frac {\cos \left (4 d x +4 c \right )}{4}+\cos \left (2 d x +2 c \right )\right ) \left (a^{2}-\frac {b^{2}}{3}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )-8 a b \cos \left (2 d x +2 c \right )-2 a b \cos \left (4 d x +4 c \right )+\left (3 a^{2}-b^{2}\right ) \sin \left (3 d x +3 c \right )+\left (11 a^{2}+7 b^{2}\right ) \sin \left (d x +c \right )+10 a b}{4 d \left (\cos \left (4 d x +4 c \right )+4 \cos \left (2 d x +2 c \right )+3\right )}\) | \(190\) |
risch | \(\frac {i {\mathrm e}^{i \left (d x +c \right )} \left (-3 a^{2} {\mathrm e}^{6 i \left (d x +c \right )}+b^{2} {\mathrm e}^{6 i \left (d x +c \right )}-11 a^{2} {\mathrm e}^{4 i \left (d x +c \right )}-7 b^{2} {\mathrm e}^{4 i \left (d x +c \right )}+11 a^{2} {\mathrm e}^{2 i \left (d x +c \right )}+7 b^{2} {\mathrm e}^{2 i \left (d x +c \right )}-32 i a b \,{\mathrm e}^{3 i \left (d x +c \right )}+3 a^{2}-b^{2}\right )}{4 d \left (1+{\mathrm e}^{2 i \left (d x +c \right )}\right )^{4}}+\frac {3 a^{2} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{8 d}-\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) b^{2}}{8 d}-\frac {3 a^{2} \ln \left (-i+{\mathrm e}^{i \left (d x +c \right )}\right )}{8 d}+\frac {\ln \left (-i+{\mathrm e}^{i \left (d x +c \right )}\right ) b^{2}}{8 d}\) | \(238\) |
norman | \(\frac {\frac {8 a b \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {8 a b \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {\left (5 a^{2}+b^{2}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{4 d}+\frac {\left (5 a^{2}+b^{2}\right ) \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 d}+\frac {\left (7 a^{2}+11 b^{2}\right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 d}+\frac {\left (7 a^{2}+11 b^{2}\right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 d}+\frac {\left (13 a^{2}+9 b^{2}\right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 d}+\frac {\left (13 a^{2}+9 b^{2}\right ) \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4 d}+\frac {4 a b \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {4 a b \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {8 a b \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}}{\left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{4} \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}-\frac {\left (3 a^{2}-b^{2}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{8 d}+\frac {\left (3 a^{2}-b^{2}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{8 d}\) | \(336\) |
1/d*(a^2*(-(-1/4*sec(d*x+c)^3-3/8*sec(d*x+c))*tan(d*x+c)+3/8*ln(sec(d*x+c) +tan(d*x+c)))+1/2*a*b/cos(d*x+c)^4+b^2*(1/4*sin(d*x+c)^3/cos(d*x+c)^4+1/8* sin(d*x+c)^3/cos(d*x+c)^2+1/8*sin(d*x+c)-1/8*ln(sec(d*x+c)+tan(d*x+c))))
Time = 0.29 (sec) , antiderivative size = 118, normalized size of antiderivative = 1.19 \[ \int \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {{\left (3 \, a^{2} - b^{2}\right )} \cos \left (d x + c\right )^{4} \log \left (\sin \left (d x + c\right ) + 1\right ) - {\left (3 \, a^{2} - b^{2}\right )} \cos \left (d x + c\right )^{4} \log \left (-\sin \left (d x + c\right ) + 1\right ) + 8 \, a b + 2 \, {\left ({\left (3 \, a^{2} - b^{2}\right )} \cos \left (d x + c\right )^{2} + 2 \, a^{2} + 2 \, b^{2}\right )} \sin \left (d x + c\right )}{16 \, d \cos \left (d x + c\right )^{4}} \]
1/16*((3*a^2 - b^2)*cos(d*x + c)^4*log(sin(d*x + c) + 1) - (3*a^2 - b^2)*c os(d*x + c)^4*log(-sin(d*x + c) + 1) + 8*a*b + 2*((3*a^2 - b^2)*cos(d*x + c)^2 + 2*a^2 + 2*b^2)*sin(d*x + c))/(d*cos(d*x + c)^4)
\[ \int \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=\int \left (a + b \sin {\left (c + d x \right )}\right )^{2} \sec ^{5}{\left (c + d x \right )}\, dx \]
Time = 0.18 (sec) , antiderivative size = 115, normalized size of antiderivative = 1.16 \[ \int \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {{\left (3 \, a^{2} - b^{2}\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) - {\left (3 \, a^{2} - b^{2}\right )} \log \left (\sin \left (d x + c\right ) - 1\right ) - \frac {2 \, {\left ({\left (3 \, a^{2} - b^{2}\right )} \sin \left (d x + c\right )^{3} - 4 \, a b - {\left (5 \, a^{2} + b^{2}\right )} \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{4} - 2 \, \sin \left (d x + c\right )^{2} + 1}}{16 \, d} \]
1/16*((3*a^2 - b^2)*log(sin(d*x + c) + 1) - (3*a^2 - b^2)*log(sin(d*x + c) - 1) - 2*((3*a^2 - b^2)*sin(d*x + c)^3 - 4*a*b - (5*a^2 + b^2)*sin(d*x + c))/(sin(d*x + c)^4 - 2*sin(d*x + c)^2 + 1))/d
Time = 0.33 (sec) , antiderivative size = 118, normalized size of antiderivative = 1.19 \[ \int \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {{\left (3 \, a^{2} - b^{2}\right )} \log \left ({\left | \sin \left (d x + c\right ) + 1 \right |}\right ) - {\left (3 \, a^{2} - b^{2}\right )} \log \left ({\left | \sin \left (d x + c\right ) - 1 \right |}\right ) - \frac {2 \, {\left (3 \, a^{2} \sin \left (d x + c\right )^{3} - b^{2} \sin \left (d x + c\right )^{3} - 5 \, a^{2} \sin \left (d x + c\right ) - b^{2} \sin \left (d x + c\right ) - 4 \, a b\right )}}{{\left (\sin \left (d x + c\right )^{2} - 1\right )}^{2}}}{16 \, d} \]
1/16*((3*a^2 - b^2)*log(abs(sin(d*x + c) + 1)) - (3*a^2 - b^2)*log(abs(sin (d*x + c) - 1)) - 2*(3*a^2*sin(d*x + c)^3 - b^2*sin(d*x + c)^3 - 5*a^2*sin (d*x + c) - b^2*sin(d*x + c) - 4*a*b)/(sin(d*x + c)^2 - 1)^2)/d
Time = 4.80 (sec) , antiderivative size = 93, normalized size of antiderivative = 0.94 \[ \int \sec ^5(c+d x) (a+b \sin (c+d x))^2 \, dx=\frac {\mathrm {atanh}\left (\sin \left (c+d\,x\right )\right )\,\left (\frac {3\,a^2}{8}-\frac {b^2}{8}\right )}{d}+\frac {\left (\frac {b^2}{8}-\frac {3\,a^2}{8}\right )\,{\sin \left (c+d\,x\right )}^3+\left (\frac {5\,a^2}{8}+\frac {b^2}{8}\right )\,\sin \left (c+d\,x\right )+\frac {a\,b}{2}}{d\,\left ({\sin \left (c+d\,x\right )}^4-2\,{\sin \left (c+d\,x\right )}^2+1\right )} \]